<html>
<body>

	<a id="AA01" href="aaa/ccc">01</a>
	<br/>
	<a id="AA02" href="zz_test_02.html">02</a>
	<br/>
	<a id="AA03" href="html_test/zz_test_03.html">03</a>
	<br/>
	<a id="AA04" href="http://www.baidu.com">04</a>


<script type="text/javascript">
	var AA = document.getElementsByTagName("A");
//	console.log(AA);
	var hrefs = [];
	for( var i = 0; i < AA.length; i++)
	{
		console.log(AA[i].href);
		hrefs[i] = AA[i].href
	}
	console.log("hrefs: "+hrefs);

</script>

</body>
</html>